import React from 'react';
import { DiseaseItemState } from '../../types';
import style from './style.module.scss';
interface PropsType {
  item: DiseaseItemState
}

export const WdDiseaseItem: React.FC<PropsType> = ({ item }) => {
  return <div className={style.item}>
    <h3>{item.title}</h3>
    <p>{new Date(item.releaseTime).toLocaleString()}</p>
    <div>{item.detail}</div>
    <div className={style.right}>
      <span style={{ marginRight: 10 }}>收藏 {item.collectionNum}</span>
      <span>建议 {item.collectionNum}</span>
    </div>
  </div>
}
